/*

Author   : chaos

FileName : macro.cpp

Date     : 09/08/17 16:54:05

*/
#include <iostream>
using namespace std;

#define F(X) 6*X+5
#define FA(X) (6*X+5)
#define FAA(X) (6*(X) + 5)


int main(int argc ,char *argv[])
{

    cout << "F(5)=" << F(5) << endl;
    cout << "FA(5)=" << FA(5) << endl;
    cout << "FAA(5)=" << FAA(5) << endl;


    cout << "F(5+2)=" << F(5+2) << endl;
    cout << "FA(5+2)=" << FA(5+2) << endl;
    cout << "FAA(5+2)=" << FAA(5+2) << endl;

    cout << "F(F(2))=" << F(F(2)) << endl;
    cout << "FA(F(2))=" << FA(F(2)) << endl;
    cout << "FAA(F(2))=" << FAA(F(2)) << endl;

    cout << "F(F(5+2))=" << F(F(5+2)) << endl;
    cout << "FA(FA(5+2))=" << FA(FA(5+2)) << endl;
    cout << "FAA(FAA(5+2))=" << FAA(FAA(5+2)) << endl;
    return 0;
}
